function getCookies(cookieName) {
	var cookieName = cookieName + "=";
	var allCookie = document.cookie;
	var wantCookieStartPlace = allCookie.indexOf(cookieName);
	if(wantCookieStartPlace > -1) {
		var wantCookieEndPlace = allCookie.indexOf(";", wantCookieStartPlace);
		if(wantCookieEndPlace == -1) {
			wantCookieEndPlace = allCookie.length;
		}
		var wantCookieValue = allCookie.substring((wantCookieStartPlace + cookieName.length), wantCookieEndPlace);
	}
    return decodeURI(wantCookieValue);  
}
//很关键
export { 
  getCookies
}